<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css" />
	</head>

	<body>
		<div class="am-g">
			{include file='../Common/hy_header.html'}
			<div class="am-u-md-8 am-u-end">
				<form class="am-form am-form-horizontal hy-js-form">
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">品牌名称</label>
						<div class="am-u-sm-9">
							<input type="text" name="brand_name" value="{$art.brand_name}">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">英文名称</label>
						<div class="am-u-sm-9">
							<input type="text" class='hy-js-enname' name="en_name" value="{$art.en_name}">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">品牌首字母:</label>
						<div class="am-u-sm-9">
							<select class="hy-js-letter" name="first_letter">
								<option value="#">#</option>
								<option value="A" {if $art.first_letter eq 'A'} selected {/if}>A</option>
								<option value="B" {if $art.first_letter eq 'B'} selected {/if}>B</option>
								<option value="C" {if $art.first_letter eq 'C'} selected {/if}>C</option>
								<option value="D" {if $art.first_letter eq 'D'} selected {/if}>D</option>
								<option value="E" {if $art.first_letter eq 'E'} selected {/if}>E</option>
								<option value="F" {if $art.first_letter eq 'F'} selected {/if}>F</option>
								<option value="G" {if $art.first_letter eq 'G'} selected {/if}>G</option>
								<option value="H" {if $art.first_letter eq 'H'} selected {/if}>H</option>
								<option value="I" {if $art.first_letter eq 'I'} selected {/if}>I</option>
								<option value="J" {if $art.first_letter eq 'J'} selected {/if}>J</option>
								<option value="K" {if $art.first_letter eq 'K'} selected {/if}>K</option>
								<option value="L" {if $art.first_letter eq 'L'} selected {/if}>L</option>
								<option value="M" {if $art.first_letter eq 'M'} selected {/if}>M</option>
								<option value="N" {if $art.first_letter eq 'N'} selected {/if}>N</option>
								<option value="O" {if $art.first_letter eq 'O'} selected {/if}>O</option>
								<option value="P" {if $art.first_letter eq 'P'} selected {/if}>P</option>
								<option value="Q" {if $art.first_letter eq 'Q'} selected {/if}>Q</option>
								<option value="R" {if $art.first_letter eq 'R'} selected {/if}>R</option>
								<option value="S" {if $art.first_letter eq 'S'} selected {/if}>S</option>
								<option value="T" {if $art.first_letter eq 'T'} selected {/if}>T</option>
								<option value="U" {if $art.first_letter eq 'U'} selected {/if}>U</option>
								<option value="V" {if $art.first_letter eq 'V'} selected {/if}>V</option>
								<option value="W" {if $art.first_letter eq 'W'} selected {/if}>W</option>
								<option value="X" {if $art.first_letter eq 'X'} selected {/if}>X</option>
								<option value="Y" {if $art.first_letter eq 'Y'} selected {/if}>Y</option>
								<option value="Z" {if $art.first_letter eq 'Z'} selected {/if}>Z</option>
							</select>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">品牌logo</label>
						<div class="am-u-sm-4">
							<input type="text" name="brand_logo" class="am-input-sm" value="{$art.brand_logo}">

						</div>
						<div class="am-u-sm-1">
							<img id="hy-thumb" class="hy-js-cutimg" style="height: 30px;" {if $art.brand_logo}src="{$art.brand_logo}" {else} src="{$_C.hy_path}images/logo2.png" {/if}>
						</div>
						<div class="am-u-sm-4 am-u-end">
							<button class="am-btn am-btn-primary am-btn-xs hy-js-uploadimg">上传</button>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">品牌简述</label>
						<div class="am-u-sm-9">
							<textarea  rows="5" name="brand_desc">{$art.brand_desc}</textarea>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">品牌网址:</label>
						<div class="am-u-sm-9">
							<input type="text" name="site_url" value="{$art.site_url}" placeholder="http://">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">是否显示</label>
						<div class="am-u-sm-9">
							<div class="am-btn-group" data-am-button="">
								<label class="am-btn am-btn-default am-btn-xs  {if $art.is_show}{if $art.is_show eq 1} am-active{else}{/if}{else} am-active{/if}">
									<input type="radio" name="is_show" value="1" {if $art.is_show}{if $art.is_show eq 1} checked="checked" {else}{/if}{else} checked="checked" {/if} id="option1"> 显示
								</label>
								<label class="am-btn am-btn-default am-btn-xs  {if $art.is_show eq -1}am-active{else}{/if}">
									<input type="radio" name="is_show" {if $art.is_show eq -1} checked="checked" {else}{/if} value="-1" id="option2">不显示
								</label>
							</div>
						</div>
					</div>

					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
						<input type="hidden" name="id" id="id" value="{$id}" />
							<button type="button" class="am-btn am-btn-primary hy-js-submit">{$_L.SAVE}</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		{include file='../Common/hy_footer.html'}
		<script type="text/javascript">
		$('.hy-js-enname').keyup(function(){
			var val=$(this).val();
			var letter=val.substr(0,1).toUpperCase();
			$('.hy-js-letter').val(letter);
		});
			hy_uploadimg('/brands',{},function(result){
		    	if(typeof(result[0])!='undefined')
		    	{
		        	$('#hy-thumb').attr('src',result[0]);
		        	$('input[name=brand_logo]').val(result[0]).focus();
		       }
		    })
			   hy_submit('index.php?g=admin&m=goods&a={$action}');
		</script>
	</body>

</html>